<div ng-controller="PrintCtrl" ng-init="listAction()">
    <ul class="sui-breadcrumb">
        <li><a href="#/print/list">打印机设置</a></li>
        <li class="active"> {{'info' | translate}}</li>
        <span class="sui-form sui-form pull-right"> 
          大黄蜂打印组件:
          <a href="https://mall.dhfapp.com/web/soft/dhf-printer.app.zip" target="_blank" class="sui-btn btn-primary">Mac版下载</a> 
          <a href="https://mall.dhfapp.com/web/soft/dhf-printer-win32-x64.zip" target="_blank" class="sui-btn btn-primary">windows版下载</a> 
          移动端：
          <!-- <button class="sui-btn btn-small btn-primary" ng-click="appZip()" ng-show="!records.length" ng-disabled="odj">安卓版下载</button> -->
          <a href="https://mall.dhfapp.com/web/soft/dhfprinter.apk" target="_blank" class="sui-btn btn-primary">安卓版下载</a> 
        </span>
    </ul>
    <div>
        <table class="sui-table table-bordered">
            <thead>
                <tr>
                    <th>编号</th>
                    <th>打印机名称</th>
                    <th>本店是否使用此打印机</th>
                    <th>设备唯一识别id</th>
                    <th>设备名称</th>
                    <th>打印机唯一识别id</th>
                    <th>app是否连接</th>
                    <th>添加时间</th>
                    <th>操作</th>
                    <th>关联模板</th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="printer in printersList">
                    <td>{{printer.printer_id}}</td>
                    <td>{{printer.printer_name}}</td>
                    <td>
                        <span ng-if="!printer.ary[store_id]" class='sui-btn' ng-click="saveStoreid(printer.printer_id,1)">
                            <i class='fa fa-close' aria-hidden='true'></i>已关闭
                        </span>
                        <span ng-if="printer.ary[store_id]" class='sui-btn btn-success' ng-click="saveStoreid(printer.printer_id,2)">
                            <i class='fa fa-check' aria-hidden='true'></i>使用中
                        </span>
                    </td>
                    <td>
                        {{printer.device_uuid}}
                    </td>
                    <td>
                        {{printer.device_name}}
                    </td>
                    <td>
                        {{printer.printer_uuid}}
                    </td>
                    <td>
                        <span ng-if="printer.deviceheart" class="sui-label label-success">
                            连接成功
                        </span>
                        <span ng-if="!printer.deviceheart" class="sui-label label-danger">
                            连接关闭
                        </span>
                    </td>
                    <td>
                        {{printer.add_time}}
                    </td>
                    <td>
                        <button class="sui-btn btn-danger" ng-click="Remprinter(printer.printer_id)">{{'删除打印机'|translate}}</button>
                    </td>
                    <td>
                       <a  class="sui-btn btn-success" ng-show="printer.printer_name !=='voice'" href="#/print/tmplatebinding?printer_uuid={{printer.printer_uuid}}">绑定模板</a>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</div>